const mysql=require("mysql");
// const pool=mysql.createPool({
// 	host:"127.0.0.1",
// 	port:3306,
// 	user:"root",
//     password:"admin123",
// 	database:"vue_admin1",
// 	connectionLimit:15
// });
const pool=mysql.createPool({
	host:"170.187.227.72",
	port:3306,
	user:"admin-ldy",
    password:"admin-ldy",
	database:"vue_admin1",
	connectionLimit:15
});
pool.getConnection(function(err, connection) {
  if (err) {
    console.error('连接失败: ' + err.stack);
    return;
  }
  console.log('连接成功，数据库版本 ' + connection.threadId);
  connection.release();
});
module.exports=pool;
